package no.ntnu.fp.services.impl;

import java.util.List;

import no.ntnu.fp.model.Employee;
import no.ntnu.fp.services.EmployeeService;
import no.ntnu.fp.storage.EmployeeStorage;

public class EmployeeServiceImpl extends EntityServiceImpl<Employee> implements EmployeeService {
	
	private final EmployeeStorage employeeStorage;
	
	public EmployeeServiceImpl(EmployeeStorage employeeStorage) {
		this.employeeStorage = employeeStorage;
	}

	public Employee getEmployeeByCredentials(String username, String password) {
		return employeeStorage.getEmployeeByCredentials(username, password);
	}

	@Override
	public List<Employee> getAllEmployees() {
		return employeeStorage.getAllEmployees();
	}
}
